﻿using Stock.Model.Utils;
using System;
using System.Collections.Generic;
using System.Data.Linq.Mapping;
using System.Linq;
using System.Text;
using System.Threading.Tasks;



namespace Stock.Model.DB
{
      /// <summary>
      /// T_SOTCK_LOG
      /// </summary>
      [TableName("T_STOCK_LOG")]
      public class TStockLog
      {
            [PrimaryKey]
            public int ID { set; get; }
  
            public string CODE { set; get; }
            public string NAME { set; get; }


            public decimal HIGH { set; get; }

            public decimal LOW { set; get; }
            public decimal OPEN { set; get; }
            public decimal CLOSE { set; get; }
            public decimal PERCENT { set; get; }
            public decimal CHG { set; get; }

            public decimal AMPLITUDE { set; get; }
            public decimal TRADE_VOLUME { set; get; }//最近逐笔成交
            public decimal VOLUME { set; get; }
            public int TOTAL_VOLUME { set; get; }//总成交量（手）
            public decimal TOTAL_AMOUNT { set; get; }
            public decimal TURNOVER_RATE { set; get; }//换手率
            public decimal AVG_PRICE { set; get; }
            public decimal LAST_CLOSE { set; get; }
            public string PRICE_GROUP { set; get; }
            public DateTime GET_DATE { set; get; }



            public decimal BUY1 { set; get; }
            public int BUY1_VOLUME { set; get; }
            public decimal BUY2 { set; get; }
            public int BUY2_VOLUME { set; get; }
            public decimal BUY3 { set; get; }
            public int BUY3_VOLUME { set; get; }
            public decimal BUY4 { set; get; }
            public int BUY4_VOLUME { set; get; }
            public decimal BUY5 { set; get; }
            public int BUY5_VOLUME { set; get; }
            public decimal SALE1 { set; get; }
            public int SALE1_VOLUME { set; get; }
            public decimal SALE2 { set; get; }
            public int SALE2_VOLUME { set; get; }
            public decimal SALE3 { set; get; }
            public int SALE3_VOLUME { set; get; }
            public decimal SALE4 { set; get; }
            public int SALE4_VOLUME { set; get; }
            public decimal SALE5 { set; get; }
            public int SALE5_VOLUME { set; get; }

            /// <summary>
            /// 外盘
            /// </summary>
            public int OUTSIDE_DISH { set; get; }


            /// <summary>
            /// 8: 内盘
            /// </summary>
            public int INSIDE_DISH { set; get; }

            /// <summary>
            /// 47: 涨停价
            /// </summary>
            public decimal HARDEN_PRICE { get; set; }

            /// <summary>
            /// 48: 跌停价
            /// </summary>
            public decimal DROP_STOP_PRICE { get; set; }


            /// <summary>
            /// 49: 量比
            /// </summary>
            public decimal VOLUME_COMPARE { get; set; }

            /// <summary>
            /// 39: 市盈率
            /// </summary>
            public decimal PE { get; set; }

            /// <summary>
            /// 46: 市净率
            /// </summary>
            public decimal PB { get; set; }

            //public DateTime TRADE_DATE { set; get; }//时间
      }
}
